www.gusucode.com > 环保时代家庭财务管理系统 EPffms v4.0 > 环保时代家庭财务管理系统 EPffms v4.0\code\eptimehome\zhanghu_list.asp
<!-- #include file="conn.asp" --> <% '**************************************************** 'Code for EptimeFFMS 'Vision : v4.0 '**************************************************** %> <html> <head> <title><%=sitename%>-帐户对账明细 </title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link href="images/admin.css" rel="stylesheet" type="text/css"> <style> body { background-color:#FFFFFF; } </style> <script language=javascript> function preview() { bdhtml=window.document.body.innerHTML; sprnstr="<!--startprint-->"; eprnstr="<!--endprint-->"; prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17); prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr)); window.document.body.innerHTML=prnhtml; window.print(); window.document.body.innerHTML=bdhtml; } </script> </HEAD> <BODY> <!--当前导航--> <script type="text/JavaScript">if(parent.$('admincpnav')) parent.$('admincpnav').innerHTML='首页 » 帐户管理 » 对账明细';</script> <script> function CheckAll(form) { for (var i=0;i<form.elements.length;i++) { var e = form.elements[i]; if (e.name != 'chkall') e.checked = form.chkall.checked; } } </script> <% '取得当前页码 currentpage=request("page") 'response.write currentpage 'response.end if currentpage<1 or currentpage="" then currentpage="1" end if '取得搜索关键字 nowzhanghu=request("id") %> <table width="95%" border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td width="50" height="50"> <img src="images/print.jpg" align="absmiddle" style="cursor:hand;" onClick="preview();"></td> <td width="*" align="right"> </td> </tr> </table> <% sql="select * from Eptime_money where zhanghu="&nowzhanghu&" or zhanghu1="&nowzhanghu set count_buy = server.createobject("ADODB.RecordSet") count_buy.open sql,conn,1,3 nowprice1=0 nowprice2=0 do while count_buy.eof=false if count_buy("type")=0 then nowprice1=nowprice1+count_buy("price") ElseIf count_buy("type")=3 Then nowprice1=nowprice1+count_buy("price") ElseIf count_buy("type")=5 Then nowprice1=nowprice1+count_buy("price") ElseIf count_buy("type")=2 Then nowprice1=nowprice1+count_buy("price") nowprice2=nowprice2+count_buy("price") ElseIf count_buy("type")=1 Then nowprice2=nowprice2+count_buy("price") ElseIf count_buy("type")=4 Then nowprice2=nowprice2+count_buy("price") ElseIf count_buy("type")=6 Then nowprice2=nowprice2+count_buy("price") end if count_buy.movenext loop %> <table width="95%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED"> <tr> <td><img src="images/r_1.gif" alt="" /></td> <td width="100%" background="images/r_0.gif"> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center"> <% sqla="select * from Eptime_zhanghu where id="&nowzhanghu set rs_zhanghu=conn.execute(sqla) %> <%if rs_zhanghu.eof=false then%> 【<%=rs_zhanghu("name")%>】的对账明细表 <%else%> <%end if%> </td> </tr> </table> </td> <td><img src="images/r_2.gif" alt="" /></td> </tr> <tr> <td></td> <td> <!--startprint--> <table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1"> <tr align="center"> <td class="category">时间</td> <td class="category">类型</td> <td class="category">家庭成员</td> <td class="category">帐户</td> <td class="category">流入</td> <td class="category">流出</td> <td class="category">备注</td> </tr> <% set rs_money =server.createobject("ADODB.RecordSet") rs_money.open sql,conn,1,3 if not rs_money.eof then 'rs_money.pagesize=maxrecord rs_money.absolutepage=currentpage for currentrec=1 to rs_money.pagesize if rs_money.eof then exit for end if %> <tr> <td align="center"><%=rs_money("selldate")%></td> <td align="left">[<%if rs_money("type")=0 then%>收入<%ElseIf rs_money("type")=1 then%>支出<%ElseIf rs_money("type")=2 then%>转账<%ElseIf rs_money("type")=3 then%>借入<%ElseIf rs_money("type")=4 then%>借出<%ElseIf rs_money("type")=5 then%>收债<%ElseIf rs_money("type")=6 then%>还债<%end if%>] </td> <td align="center"> <% sql="select * from Eptime_admin where id="&rs_money("id_login") set rs_login=conn.execute(sql) %> <%if rs_login.eof then%><%=rs_money("login")%><%else%><%=rs_login("realname")%><%end if%> </td> <td align="center"> <%if rs_money("type")=0 then%>-><%ElseIf rs_money("type")=3 then%>-><%ElseIf rs_money("type")=5 then%>-><%else%> <%end if%> <% sql="select * from Eptime_zhanghu where id="&rs_money("zhanghu") set rs_zhanghu=conn.execute(sql) %> <%if rs_zhanghu.eof=false then%><%=rs_zhanghu("name")%><%else%> <%end if%> <%if rs_money("type")=1 then%>-><%ElseIf rs_money("type")=4 then%>-><%ElseIf rs_money("type")=6 then%>-><%else%> <%end if%> <%if rs_money("type")=2 then%>-> <% sql="select * from Eptime_zhanghu where id="&rs_money("zhanghu1") set rs_zhanghu=conn.execute(sql) %> <%if rs_zhanghu.eof=false then%><%=rs_zhanghu("name")%><%else%> <%end if%> <%end if%> </td> <td align="center"><%if rs_money("type")=0 then%><%=formatnumber(rs_money("price"),2)%><%ElseIf rs_money("type")=2 then%><%=formatnumber(rs_money("price"),2)%><%ElseIf rs_money("type")=3 then%><%=formatnumber(rs_money("price"),2)%><%ElseIf rs_money("type")=5 then%><%=formatnumber(rs_money("price"),2)%><%else%> <%end if%></td> <td align="center"><%if rs_money("type")=1 then%><%=formatnumber(rs_money("price"),2)%><%ElseIf rs_money("type")=2 then%><%=formatnumber(rs_money("price"),2)%><%ElseIf rs_money("type")=4 then%><%=formatnumber(rs_money("price"),2)%><%ElseIf rs_money("type")=6 then%><%=formatnumber(rs_money("price"),2)%><%else%> <%end if%></td> <td align="center"><%=Left(rs_money("beizhu"),10)%></td> </tr> <% 'end if rs_money.movenext next else %> <tr align="center" onMouseOver="this.className='highlight'" onMouseOut="this.className=''"> <td colspan="12" height="25" align="center" style="color:red"><b>没有找到记录</b></td> </tr> <% end if %> <tr align="center"> <td class="category">合计</td> <td class="category" colspan="3"></td> <td class="category"><%=formatnumber(nowprice1,2)%></td> <td class="category"><%=formatnumber(nowprice2,2)%></td> <td class="category"></td> </tr> <% if rs_money.recordcount>0 then %> <tr> <td colspan="12" height="30" class="category"> <table cellpadding=0 cellspacing=0 width="100%"> <tr> <td width="20%" align="left" style="color:#FF0000;"> </td> <td width="80%" align="right"> <%=rs_money.recordcount%> 条信息 共 <%=rs_money.pagecount%> 页 <% nowstart=currentpage-3 if nowstart<1 then nowstart=1 end if nowend=currentpage+3 if nowend>rs_money.pagecount then nowend=rs_money.pagecount end if response.write " <a href='?startdate="&request("startdate")&"&enddate="&nowenddate&"&id="&nowzhanghu&"&keyword="&nowkeyword&"&Eptime_admin="&nowEptime_admin&"&bigclass="&nowbigclass&"&smallclass="&nowsmallclass&"&page=1&order1="&request("order1")&"&order2="&request("order2")&"&order3="&request("order3")&"&order4="&request("order4")&"&order5="&request("order5")&"&order6="&request("order6")&"&order7="&request("order7")&"&order8="&request("order8")&"&order9="&request("order9")&"&order10="&request("order10")&"&order11="&request("order11")&"&order12="&request("order12")&"&order13="&request("order13")&"&order14="&request("order14")&"&order15="&request("order15")&"' class='page'>最前页</a> " for ipage=nowstart to nowend if cstr(ipage)=cstr(currentpage) then response.write " <span style='font-weight:bold;color:#5858E6'>" & ipage &"</span> " else response.write " [ <a href='?startdate="&request("startdate")&"&enddate="&nowenddate&"&id="&nowzhanghu&"&keyword="&nowkeyword&"&Eptime_admin="&nowEptime_admin&"&bigclass="&nowbigclass&"&smallclass="&nowsmallclass&"&page="&ipage&"&order1="&request("order1")&"&order2="&request("order2")&"&order3="&request("order3")&"&order4="&request("order4")&"&order5="&request("order5")&"&order6="&request("order6")&"&order7="&request("order7")&"&order8="&request("order8")&"&order9="&request("order9")&"&order10="&request("order10")&"&order11="&request("order11")&"&order12="&request("order12")&"&order13="&request("order13")&"&order14="&request("order14")&"&order15="&request("order15")&"' class='page'>" & ipage &"</a> ] " end if next response.write " <a href='?startdate="&request("startdate")&"&enddate="&nowenddate&"&id="&nowzhanghu&"&keyword="&nowkeyword&"&Eptime_admin="&nowEptime_admin&"&bigclass="&nowbigclass&"&smallclass="&nowsmallclass&"&page="&rs_money.pagecount&"&order1="&request("order1")&"&order2="&request("order2")&"&order3="&request("order3")&"&order4="&request("order4")&"&order5="&request("order5")&"&order6="&request("order6")&"&order7="&request("order7")&"&order8="&request("order8")&"&order9="&request("order9")&"&order10="&request("order10")&"&order11="&request("order11")&"&order12="&request("order12")&"&order13="&request("order13")&"&order14="&request("order14")&"&order15="&request("order15")&"' class='page'>最后页</a> " %> </td> </tr></table></td></tr> <%end if%> </table> <!--endprint--> </td> <td></td> </tr> <tr> <td><img src="images/r_4.gif" alt="" /></td> <td></td> <td><img src="images/r_3.gif" alt="" /></td> </tr> </table> </body> </html>